package com.zhangzhan.gulimallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhangzhan.gulimallcommcon.util.PageUtils;
import com.zhangzhan.gulimallproduct.entity.AttrEntity;
import com.zhangzhan.gulimallproduct.entity.ProductAttrValueEntity;
import com.zhangzhan.gulimallproduct.vos.AttrRespVo;
import com.zhangzhan.gulimallproduct.vos.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author zhangzhan
 * @email sunlightcs@gmail.com
 * @date 2024-06-12 16:45:44
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveDetailed(AttrVo attrVo);

    PageUtils attrTypeList(Map<String, Object> params, Long catelogId, String attrType);

    AttrRespVo getByIdCorrelationPath(Long attrId);

    void updateOrSaveDetailed(AttrVo attrVo);

    void attrDeletes(List<Long> attrIds);

    List<ProductAttrValueEntity> baseListforspu(Long spuId);

    void attrValueUpdate(Long spuId, List<ProductAttrValueEntity> productAttrValueEntities);
}

